package com.waylau.spring.boot.blog.repository;

import com.waylau.spring.boot.blog.domain.Authority;
import com.waylau.spring.boot.blog.domain.HotSearch;
import org.elasticsearch.gateway.AsyncShardFetch;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Authority 仓库.
 *
 * @since 1.0.0 2017年3月2日
 * @author <a href="https://waylau.com">Way Lau</a> 
 */
public interface HotSearchRepository extends JpaRepository<HotSearch, Long>{

    List<HotSearch> findTop6ByOrderByNumAsc();

    List<HotSearch> findTop3ByOrderByNumAsc();

}
